﻿using AopDLL;
using DBModel.Entity;
using ILogicLayer.DTO;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace ILogicLayer.Interface
{
    public interface IUserService
    {
        Task<bool> AddAsync(List<BasicUserInfo> list);

        [DothingBeforeInterceptor]
        Task<List<BasicUserInfo>> GetAsync(string nickName);

        Task<bool> UpdateAsync(BasicUserInfo user);

        Task<ResultDTO<BasicUserInfo>> GetAll(int pageIndex, int pageSize);

        Task<bool> DeleteAsync(Guid id);
    }
}